﻿/*
* @Author： whg
* @Date : 2021-1-19
* @Desc : 
*/
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using XNodeEditor;
[XNodeEditor.NodeEditor.CustomNodeEditor(typeof(ConditionNode))]
public class ConditionEditor : NodeEditor 
{
    ConditionNode node;
    public override void OnBodyGUI()
    {
        serializedObject.Update();
        if (node == null) node = target as ConditionNode;

        NodeEditorGUILayout.PortField(target.GetInputPort("upLink"));
        EditorGUILayout.Space();
        EditorGUIUtility.labelWidth = 100;
        NodeEditorGUILayout.PropertyField(serializedObject.FindProperty("conditTypeList"));
        NodeEditorGUILayout.PortField(target.GetOutputPort("downLink"));
        serializedObject.ApplyModifiedProperties();
    }
}
